﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using ObjectLibrary;
// -----------------------------------------------------------------------
// <copyright file="$safeitemrootname$.cs" company="$registeredorganization$">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
namespace _0912089_0912172
{
    public class MyButton : FormItem
    {


        private Texture2D _texture;

        public MyButton( string strTexture, float scale, Vector3 pos, float rotationY)
        {
            _texture = _content.Load<Texture2D>(strTexture);
            //_textureChosen = content.Load<Texture2D>(strTexture + "Chosen");
            _model = new PlanarModel(_content, strTexture, scale, pos, rotationY);
            _size = ((PlanarModel)_model).Size;
            RotationY = rotationY;
            Position = pos;
            ((PlanarModel)_model).FilterColor = Vector4.One * _defaultLight;
        }

        
    }
}
